//
//  FPIncreaseLimitDetailCell.m
//  FinanceProject
//
//  Created by 陈显摆 on 2025/4/9.
//

#import "FPIncreaseLimitDetailCell.h"

@implementation FPIncreaseLimitDetailCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
    
    self.backgroundColor = UIColor.clearColor;
    self.contentView.backgroundColor = UIColor.clearColor;
    
    self.backView.backgroundColor = UIColor.whiteColor;
    
    self.confirmBtn.clipsToBounds = YES;
    self.confirmBtn.layer.cornerRadius = 16.f;
    
    self.lineView.backgroundColor = [[UIColor hexColor:@"#F3F3F3"] colorWithAlphaComponent:.5f];
    
    self.titleLab.textColor = [UIColor hexColor:@"#3A3A3A"];
    self.subTitleLab.textColor = [UIColor hexColor:@"#9A9A9A"];
    
    self.confirmBtn.backgroundColor = MAIN_BLUE_COLOR;
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}


- (void)setAmountToSubTltleLab:(NSString *)amount {
    
    NSString *text = [NSString stringWithFormat:@"最高+%@额度",amount];
    NSRange range = [text rangeOfString:amount];
    NSMutableAttributedString *attStr = [[NSMutableAttributedString alloc] initWithString:text];
    [NSString stringToAttribute:attStr color:[UIColor hexColor:@"#FFA02B"] range:range];
    
    self.subTitleLab.attributedText = attStr;
}



@end
